package com.fs.erp.api.basedata.service.Impl;

import com.fs.erp.api.basedata.entity.ProductPurchase;
import com.fs.erp.api.basedata.mappers.ProductPurchaseMapper;
import com.fs.erp.api.basedata.service.ProductPurchaseService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class ProductPurchaseServiceImpl extends BaseMpServiceImpl<ProductPurchaseMapper, ProductPurchase>
        implements ProductPurchaseService {

    @Transactional
    @Override
    public void updateByProductId(ProductPurchase productPurchase) {
        getBaseMapper().updateById(productPurchase);
    }
}
